<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
		xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <xsl:template match="/project/schema">
    <html>
      <head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
	<title>Table List</title>
	<xsl:if test="@name = 'All'">
	  <link rel="stylesheet" type="text/css" href="stylesheet.css"></link>
	</xsl:if>
	<xsl:if test="@name != 'All'">
	  <link rel="stylesheet" type="text/css" href="../stylesheet.css"></link>
	</xsl:if>
      </head>
      <body>
	<b><xsl:value-of select="@name"/>&#160;Tables</b>
	<br></br>
	<xsl:for-each select="table">
	  <xsl:sort select="@name"/>
	  &#160;
	  <xsl:element name="a">
	    <xsl:attribute name="href">
	      <xsl:if test="/project/schema/@name = 'All'">
		<xsl:value-of select="@schema"/>/tables/<xsl:value-of select="@name"/>.html
	      </xsl:if>
	      <xsl:if test="/project/schema/@name != 'All'">
		tables/<xsl:value-of select="@name"/>.html
	      </xsl:if>
	    </xsl:attribute>
	    <xsl:attribute name="target">tableFrame</xsl:attribute>
	    <xsl:text><xsl:value-of select="@name"/></xsl:text>
	  </xsl:element>	
	  <br></br>
  	</xsl:for-each>
      </body>
    </html>
  </xsl:template>

</xsl:stylesheet>
